package com.woniuxy.carlife.carlifenewcomplaintsweb.service;

import com.woniuxy.carlife.carlifenewcomplaintsdomain.dto.UserMessageDto;
import com.woniuxy.carlife.carlifenewcomplaintsdomain.param.UserMessageParam;
import com.woniuxy.carlife.carlifenewcomplaintsweb.domain.UserMessage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author yp
 * @ClassName:UserMessageService
 * @Description:用户消息服务
 * @date 2021/4/7 2:32
 **/
public interface UserMessageService extends IService<UserMessage> {

    /*
     * 功能描述〈添加用户消息〉
     * @author:yp
     * @param:UserMessageParam
     * @return:
     * @Date 2021/4/12 9:58
     * @throws
     */
    public int addUserMessage(UserMessageParam userMessageParam);


    /*
     * 功能描述〈查询用户消息已读和未读〉
     * @author:yp
     * @param:UserMessageDto
     * @return:UserMessageParam
     * @Date 2021/4/12 10:22
     * @throws
     */
    public List<UserMessageDto> findAllUserMessage(Integer tokenUserId);


    /*
     * 功能描述〈修改消息状态〉
     * @author:yp
     * @param: UserMessageParam
     * @return:
     * @Date 2021/4/12 10:34
     * @throws
     */
    public int  updateUserMessage(Integer userMessageId);


    /*
     * 功能描述〈删除消息〉
     * @author:yp
     * @param:UserMessageParam
     * @return:
     * @Date 2021/4/12 10:39
     * @throws
     */
    public int  deleteUserMessage(Integer userMessageId);
}
